const mongoose = require('mongoose')
const Schema = mongoose.Schema
mongoose.connect('mongodb://localhost/news')

const TopicSchema = new Schema({
  topic: {
    type: String
  }
})

const Topic = mongoose.model('topic', TopicSchema)
module.exports = Topic